﻿@model DeJC.DAL.Model.GeneralMiscType

@{
    ViewBag.Title = "GtCreate";
    Layout = "~/Views/Shared/_LayoutConfig.cshtml";
}

<h2>Nuevo @ViewBag.GtName</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    @*@Html.Hidden("pId",Request.Params["pId"])*@
    <fieldset>
        <legend>GeneralMiscType</legend>
        <div class="form-style">
            <ul>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Name)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Description)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Description)
                        @Html.ValidationMessageFor(model => model.Description)
                    </div>
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Order)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Order)
                        @Html.ValidationMessageFor(model => model.Order)
                    </div>
                </li>
            </ul>
            <hr/>
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.ParentID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ParentID)
            @Html.ValidationMessageFor(model => model.ParentID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatedBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatedBy)
            @Html.ValidationMessageFor(model => model.CreatedBy)
        </div>

        

        

        <div class="editor-label">
            @Html.LabelFor(model => model.Enabled)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Enabled)
            @Html.ValidationMessageFor(model => model.Enabled)
        </div>
       
        <div class="editor-label">
            @Html.LabelFor(model => model.CreationDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreationDate)
            @Html.ValidationMessageFor(model => model.CreationDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Deleted)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Deleted)
            @Html.ValidationMessageFor(model => model.Deleted)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DeletedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DeletedDate)
            @Html.ValidationMessageFor(model => model.DeletedDate)
        </div>*@

        <p>
            <input type="submit" value="Create" />
            @Html.ActionLink("Back to List", "GtList",new{pId=Request.Params["pId"]})
        </p>
    </fieldset>
}

